from manim import *

config.background_color = "#095181"


class Test(Scene):
    def construct(self):
        # 创建坐标系
        axes = Axes(
            x_range=[-1, 10, 1],
            y_range=[-1, 6, 1]
        )

        # y = x
        line = axes.plot(
            lambda x: x,
            x_range=[0, 5]
        )

        sign_graph = axes.plot(lambda x: np.sin(x), (0, 10))

        self.add(axes, line, sign_graph)
